projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a26e8a
)
modelmenuitem: Care about GtkAccelLabel in get_text
author
Timm Bäder
<mail@baedert.org>
Sun, 16 Jul 2017 15:19:59 +0000
(17:19 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:16 +0000
(21:27 -0400)
gtk/gtkmodelmenuitem.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmodelmenuitem.c
b/gtk/gtkmodelmenuitem.c
index e04ae18a200a51a73758fce8887824b4a5504160..9afca4386fec2ba53d0f7e0d4155126b84b60203 100644
(file)
--- a/
gtk/gtkmodelmenuitem.c
+++ b/
gtk/gtkmodelmenuitem.c
@@
-273,6
+273,8
@@
gtk_model_menu_item_get_text (GtkModelMenuItem *item)
if (GTK_IS_LABEL (child))
return gtk_label_get_text (GTK_LABEL (child));
+ else if (GTK_IS_ACCEL_LABEL (child))
+ return gtk_accel_label_get_label (GTK_ACCEL_LABEL (child));
if (GTK_IS_CONTAINER (child))
{